package com.fqh.mapper;

import com.fqh.entity.Foodclass;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FoodClassMapper {

    List<Foodclass> findByPage(@Param("page") int page, @Param("limit") int limit);

    Integer findCount();

    List<Foodclass> findFoodClass();

    Integer findFoodInfo(Integer classId);

    Foodclass findFoodClassById(Integer classId);

    Integer updateById(Foodclass foodclass) throws Exception;

    Integer insert(String className) throws Exception;

    Integer deleteById(int parseInt);

    Integer findFoodIdByClassName(String className);
}